package com.wn.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.gateway.filter.factory.StripPrefixGatewayFilterFactory;
import org.springframework.cloud.gateway.handler.predicate.MethodRoutePredicateFactory;
import org.springframework.cloud.gateway.handler.predicate.PathRoutePredicateFactory;

/**
 *
 *         predicates:
 *           - Path=/system-service/**     PathRoutePredicateFactory
 *           - Method=GET                  MethodRoutePredicateFactory
 *         filters:
 *           - StripPrefix=1               StripPrefixGatewayFilterFactory
 *
 *
 */

@SpringBootApplication
public class GatewayApplication {

    StripPrefixGatewayFilterFactory a;
    PathRoutePredicateFactory a2;
    MethodRoutePredicateFactory a3;

    public static void main(String[] args) {

        SpringApplication.run(GatewayApplication.class);
    }
}